<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <!-- width宽度  border边框  height高度 cellspacing单元格之间的间距 cellpadding设置单元格内容与单元格的间距 align水平对齐方式 left左边、center居中、right右边 -->
    <table width = "500" border = "1" height="100" cellspacing="3" cellpadding="5" align="center">  
        <caption>个人信息</caption>
       <tr align="center">
           <th>姓名</th>
           <th>性别</th>
        </tr>  
        <tr>
            <td>张三</td>
            <td>男</td>
        </tr>  
        <tr>
            <td>小红</td>
            <td>女</td>
        </tr>  
    </table>
    <!-- table表格题 caption表格标题  tr行  th表头标签 td单元格 -->
</body>
</html>